home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / mdbtar~1.z / mdbtar~1 / user.h < prev   
Encoding:
C/C++ Source or Header  |  1989-05-11  |  1.5 KB  |  46 lines

  1. #include "h/type.h"
  2. #include "h/const.h"
  3. #include "kernel/type.h"
  4. #include "kernel/const.h"
  5. #undef printf
  6.  
  7. struct proc {
  8. #ifdef i8088
  9.   int p_reg[NR_REGS];        /* process' registers */
  10. #endif
  11. #ifdef ATARI_ST
  12.   long p_reg[NR_REGS];        /* process' registers */
  13. #endif
  14.   int *p_sp;            /* stack pointer */
  15.   struct pc_psw p_pcpsw;    /* pc and psw as pushed by interrupt */
  16. #ifdef i8088
  17.   int *p_splimit;        /* lowest legal stack value */
  18. #endif
  19. #ifdef ATARI_ST
  20.   int *p_splow;            /* lowest observed stack value */
  21.   int p_trap;            /* trap type (only low byte) */
  22. #endif
  23.   int p_flags;            /* P_SLOT_FREE, SENDING, RECEIVING, etc. */
  24.   struct mem_map p_map[NR_SEGS];/* memory map */
  25. #ifdef ATARI_ST
  26.   phys_clicks p_shadow;        /* set if shadowed process image */
  27.   int p_nflips;            /* statistics */
  28.   char p_physio;        /* cannot be (un)shadowed now if set */
  29. #endif
  30.   int p_pid;            /* process id passed in from MM */
  31.  
  32.   real_time user_time;        /* user time in ticks */
  33.   real_time sys_time;        /* sys time in ticks */
  34.   real_time child_utime;    /* cumulative user time of children */
  35.   real_time child_stime;    /* cumulative sys time of children */
  36.   real_time p_alarm;        /* time of next alarm in ticks, or 0 */
  37.  
  38.   struct proc *p_callerq;    /* head of list of procs wishing to send */
  39.   struct proc *p_sendlink;    /* link to next proc wishing to send */
  40.   message *p_messbuf;        /* pointer to message buffer */
  41.   int p_getfrom;        /* from whom does process want to receive? */
  42.  
  43.   struct proc *p_nextready;    /* pointer to next ready process */
  44.   int p_pending;        /* bit map for pending signals 1-16 */
  45. };
  46.